package com.xiu.travel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.experimental.Accessors;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import lombok.*;
import java.io.Serial;

/**
 * <p>
 * 系统用户角色关联表
 * </p>
 *
 * @author YuLing
 * @since 2023-10-13
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
 
@TableName("sys_user_role")
@Schema(name = "SysUserRole对象",description = "系统用户角色关联表")
public class SysUserRole extends BasePojo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
     @Schema(name = "id",description = "")
     @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
     @Schema(name = "user_id",description = "")
    @TableField("user_id")
    private Long userId;

    /**
     * 
     */
     @Schema(name = "role_id",description = "")
    @TableField("role_id")
    private Long roleId;

    /**
     * 
     */
     @Schema(name = "tenant_id",description = "")
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 
     */
     @Schema(name = "tenant_type",description = "")
    @TableField("tenant_type")
    private Integer tenantType;


}
